﻿using Admin.Core.Common.Input;
using Admin.Core.Common.Output;
using Admin.Core.Common.ParamInput;
using Admin.Core.Service.Warehouse.XbcMeterrial.Input;
using Admin.Core.Service.Warehouse.XbcMeterrial.Output;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Core.Service.Warehouse.XbcMeterrial
{
    public interface IXbcMaterrialService
    {
        /// <summary>
        /// 获取单个物料信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);
        /// <summary>
        /// 分页查询库位
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
       Task<IResponseOutput> PageAsync(PageInput<XbcMaterrialFilterInput> input);
        //全部导出
        Task<List<XbcMaterrialListOutput>> GetAllPageAsync(string name, long? xbcTypeId);
        /// <summary>
        /// 根据id获取物料规格信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResponseOutput> GetMaterDetailAsync(long id);
        /// <summary>
        /// 新增物料
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(XbcMaterrialAddInput input);


        Task<IResponseOutput> GetMaterListAsync(long id);

        /// <summary>
        /// 修改物料
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(XbMaterrialUpdateInput input);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);
    }
}
